package cn.tedu.blackhorse.mapper;

import cn.tedu.blackhorse.pojo.entity.Class;
import cn.tedu.blackhorse.pojo.vo.ClassListItemVO;
import cn.tedu.blackhorse.pojo.vo.ClassStanardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClassMapper {
    int insert(Class cls);

    int deleteById(Long id);

    int deleteByIds(List<Long> ids);

    int updateById(Class cls);

    int count();

    List<ClassListItemVO> list();

    ClassStanardVO getById(Long id);

    int countByName(String className);
}
